Lesson 0004 · ~10 min
Positional information makes order matter
Core idea: Attention alone does not know token order, so transformers add positional information.
What to remember
- Without positional signals,
dog bites manandman bites dogwould look like the same bag of tokens. - Position lets the model reason about sequence order.
Why it matters
Language depends on order. Positional information lets attention know where tokens are relative to each other.
Mental model
Token embedding + positional information = position-aware representation fed into the first layer.
Checkpoint
- Why can’t a transformer ignore order?
- What does positional information add?